import * as types from './mutation-types'
import Vue from 'vue'
// 设置tab数据
export const SET_TAB_LIST = function ({commit}, tabBbj) {
  commit(types.SET_TAB_LIST, tabBbj)
}

// 设置目录
export const SET_SECOND_DIRECTORY = function ({commit}, dirObj) {
  commit(types.SET_SECOND_DIRECTORY, dirObj)
}

// 设置当前选项
export const SET_TAB_CURRENT_INDEX = function({commit}, currentIndex) {

	commit(types.SET_TAB_CURRENT_INDEX, currentIndex)
}

// 设置商家信息配置

export const  SET_MERINFO_CONFIG = function({commit}, merInfoConfig) {

	commit(types.SET_MERINFO_CONFIG, merInfoConfig)
}
// 获取公钥
export const  SET_PUBLIC_KEY = function({commit}, key) {
	commit(types.SET_PUBLIC_KEY, key)
}
// 设置会员等级权限
export const  SET_SENIOR_MALL = function({commit},flag) {
	commit(types.SET_SENIOR_MALL, flag)
}
// 设置会员注册审核权限是否开通
export const  SET_MEMBER_AUDIT = function({commit},memberAudit) {
	commit(types.SET_MEMBER_AUDIT, memberAudit)
}
// 设置每一步的缓存
export const  SET_STEP_CACHE = function({commit},stepCache) {
	commit(types.SET_STEP_CACHE, stepCache)
}
// 设置侧边栏样式
export const  SET_SIDEBAR_STYLE = function({commit},classNameFlag) {
	commit(types.SET_SIDEBAR_STYLE, classNameFlag)
}
